package com.atguigu.sugar.service;

import com.atguigu.sugar.bean.C3Bean;
import com.atguigu.sugar.mapper.TradeStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TradeStatsServiceImpl implements TradeStatsService {
    
    @Autowired
    TradeStatsMapper tradeStatsMapper;
    @Override
    public Double selectTotalAmount(Integer date) {
        return tradeStatsMapper.selectTotalAmount(date);
    }
    
    @Override
    public List<Map<String, Object>> gmvBySpu(Integer date) {
        return tradeStatsMapper.gmvBySpu(date);
    }
    
    @Override
    public List<C3Bean> gmvByC3(Integer date) {
        return tradeStatsMapper.gmvByC3(date);
    }
    
}
